Optimal. Leaf size=120 \[ x \sqrt {a+b \text {ArcSin}(c x)}-\frac {\sqrt {b} \sqrt {\frac {\pi }{2}} \cos \left (\frac {a}{b}\right ) S\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right )}{c}+\frac {\sqrt {b} \sqrt {\frac {\pi }{2}} \text {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right ) \sin \left (\frac {a}{b}\right )}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 120, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.583, Rules used = {4715, 4809,
3387, 3386, 3432, 3385, 3433} \begin {gather*} \frac {\sqrt {\frac {\pi }{2}} \sqrt {b} \sin \left (\frac {a}{b}\right ) \text {FresnelC}\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right )}{c}-\frac {\sqrt {\frac {\pi }{2}} \sqrt {b} \cos \left (\frac {a}{b}\right ) S\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \text {ArcSin}(c x)}}{\sqrt {b}}\right )}{c}+x \sqrt {a+b \text {ArcSin}(c x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3385
Rule 3386
Rule 3387
Rule 3432
Rule 3433
Rule 4715
Rule 4809
Rubi steps
\begin {align*} \int \sqrt {a+b \sin ^{-1}(c x)} \, dx &=x \sqrt {a+b \sin ^{-1}(c x)}-\frac {1}{2} (b c) \int \frac {x}{\sqrt {1-c^2 x^2} \sqrt {a+b \sin ^{-1}(c x)}} \, dx\\ &=x \sqrt {a+b \sin ^{-1}(c x)}-\frac {b \text {Subst}\left (\int \frac {\sin (x)}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{2 c}\\ &=x \sqrt {a+b \sin ^{-1}(c x)}-\frac {\left (b \cos \left (\frac {a}{b}\right )\right ) \text {Subst}\left (\int \frac {\sin \left (\frac {a}{b}+x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{2 c}+\frac {\left (b \sin \left (\frac {a}{b}\right )\right ) \text {Subst}\left (\int \frac {\cos \left (\frac {a}{b}+x\right )}{\sqrt {a+b x}} \, dx,x,\sin ^{-1}(c x)\right )}{2 c}\\ &=x \sqrt {a+b \sin ^{-1}(c x)}-\frac {\cos \left (\frac {a}{b}\right ) \text {Subst}\left (\int \sin \left (\frac {x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c x)}\right )}{c}+\frac {\sin \left (\frac {a}{b}\right ) \text {Subst}\left (\int \cos \left (\frac {x^2}{b}\right ) \, dx,x,\sqrt {a+b \sin ^{-1}(c x)}\right )}{c}\\ &=x \sqrt {a+b \sin ^{-1}(c x)}-\frac {\sqrt {b} \sqrt {\frac {\pi }{2}} \cos \left (\frac {a}{b}\right ) S\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \sin ^{-1}(c x)}}{\sqrt {b}}\right )}{c}+\frac {\sqrt {b} \sqrt {\frac {\pi }{2}} C\left (\frac {\sqrt {\frac {2}{\pi }} \sqrt {a+b \sin ^{-1}(c x)}}{\sqrt {b}}\right ) \sin \left (\frac {a}{b}\right )}{c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.07, size = 119, normalized size = 0.99 \begin {gather*} \frac {b e^{-\frac {i a}{b}} \left (\sqrt {-\frac {i (a+b \text {ArcSin}(c x))}{b}} \text {Gamma}\left (\frac {3}{2},-\frac {i (a+b \text {ArcSin}(c x))}{b}\right )+e^{\frac {2 i a}{b}} \sqrt {\frac {i (a+b \text {ArcSin}(c x))}{b}} \text {Gamma}\left (\frac {3}{2},\frac {i (a+b \text {ArcSin}(c x))}{b}\right )\right )}{2 c \sqrt {a+b \text {ArcSin}(c x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 187, normalized size = 1.56
method | result | size |
default | \(-\frac {-\sqrt {2}\, \sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, \sqrt {a +b \arcsin \left (c x \right )}\, \cos \left (\frac {a}{b}\right ) \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right ) b -\sqrt {2}\, \sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, \sqrt {a +b \arcsin \left (c x \right )}\, \sin \left (\frac {a}{b}\right ) \FresnelC \left (\frac {\sqrt {2}\, \sqrt {a +b \arcsin \left (c x \right )}}{\sqrt {\pi }\, \sqrt {-\frac {1}{b}}\, b}\right ) b +2 \arcsin \left (c x \right ) \sin \left (-\frac {a +b \arcsin \left (c x \right )}{b}+\frac {a}{b}\right ) b +2 \sin \left (-\frac {a +b \arcsin \left (c x \right )}{b}+\frac {a}{b}\right ) a}{2 c \sqrt {a +b \arcsin \left (c x \right )}}\) | \(187\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a + b \operatorname {asin}{\left (c x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.62, size = 531, normalized size = 4.42 \begin {gather*} \frac {\sqrt {2} \sqrt {\pi } a b \operatorname {erf}\left (-\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (\frac {i \, a}{b}\right )}}{2 \, {\left (\frac {i \, b^{2}}{\sqrt {{\left | b \right |}}} + b \sqrt {{\left | b \right |}}\right )} c} + \frac {i \, \sqrt {2} \sqrt {\pi } b^{2} \operatorname {erf}\left (-\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (\frac {i \, a}{b}\right )}}{4 \, {\left (\frac {i \, b^{2}}{\sqrt {{\left | b \right |}}} + b \sqrt {{\left | b \right |}}\right )} c} + \frac {\sqrt {2} \sqrt {\pi } a b \operatorname {erf}\left (\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (-\frac {i \, a}{b}\right )}}{2 \, {\left (-\frac {i \, b^{2}}{\sqrt {{\left | b \right |}}} + b \sqrt {{\left | b \right |}}\right )} c} - \frac {i \, \sqrt {2} \sqrt {\pi } b^{2} \operatorname {erf}\left (\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (-\frac {i \, a}{b}\right )}}{4 \, {\left (-\frac {i \, b^{2}}{\sqrt {{\left | b \right |}}} + b \sqrt {{\left | b \right |}}\right )} c} - \frac {\sqrt {\pi } a \operatorname {erf}\left (-\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (\frac {i \, a}{b}\right )}}{c {\left (\frac {i \, \sqrt {2} b}{\sqrt {{\left | b \right |}}} + \sqrt {2} \sqrt {{\left | b \right |}}\right )}} - \frac {\sqrt {\pi } a \operatorname {erf}\left (\frac {i \, \sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a}}{2 \, \sqrt {{\left | b \right |}}} - \frac {\sqrt {2} \sqrt {b \arcsin \left (c x\right ) + a} \sqrt {{\left | b \right |}}}{2 \, b}\right ) e^{\left (-\frac {i \, a}{b}\right )}}{c {\left (-\frac {i \, \sqrt {2} b}{\sqrt {{\left | b \right |}}} + \sqrt {2} \sqrt {{\left | b \right |}}\right )}} - \frac {i \, \sqrt {b \arcsin \left (c x\right ) + a} e^{\left (i \, \arcsin \left (c x\right )\right )}}{2 \, c} + \frac {i \, \sqrt {b \arcsin \left (c x\right ) + a} e^{\left (-i \, \arcsin \left (c x\right )\right )}}{2 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \sqrt {a+b\,\mathrm {asin}\left (c\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________